
# pip3 install python-pptx python-docx markdown  -i http://pypi.tuna.tsinghua.edu.cn/simple  --trusted-host pypi.tuna.tsinghua.edu.cn
pandoc --list-input-formats


#file="/Users/emery/Downloads/语料素材/1-概览/test-doc.docx"
#lua_filter=improve_headers.lua
#lua_filter=/Users/emery/Downloads/语料素材/pro/improve_headers.lua
#pandoc -f docx -t markdown_strict+pipe_tables+table_captions+yaml_metadata_block --lua-filter=${lua_filter}  "${file}" -o "${file}.md"

file="/Users/emery/Downloads/语料素材/1-概览/test-doc.docx"
lua_filter=improve_headers.lua
lua_filter=/Users/emery/Downloads/语料素材/pro/improve_headers.lua
pandoc -f docx -t markdown_strict+pipe_tables+table_captions+yaml_metadata_block --lua-filter=${lua_filter}  "${file}" -o "${file}.md"






echo "下面的命令会显示图片 "
file="/Users/emery/Downloads/语料素材/1-概览/test-doc.docx"
#file="test-doc.docx"
pandoc -f docx -t markdown_strict+pipe_tables+table_captions+yaml_metadata_block "${file}" -o "${file}.md"


pandoc -f docx -t markdown_strict+pipe_tables+table_captions+yaml_metadata_block "input.docx" -o "output.md"


```
for file in *.docx; do
    pandoc -f docx -t markdown "$file" -o "${file%.docx}.md"
done
```









.
